<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
   
    function sum(word) {
       var a =0
      for(var i=0; i<=word; i++){
        a+=i;
    }
      return a
      // console.log(a);
    }
    var res1 = sum(3);
    var res2 = sum(1000);
    console.log(res1,res2,'王贺率');
    
    function fn4(name,age,sex){
      console.log(`我叫${name}, 今年${age}了`)
    }
    fn4('wang',60);

  
 

  </script>
</body>
</html>